<!DOCTYPE html>
<html lang="en" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<head>
    <meta charset="utf-8">
    <title>layuiAdmin 后台管理员</title>
    <meta content="webkit" name="renderer">
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"
          name="viewport">
    <link href="/static/layuiadmin/layui/css/layui.css" media="all" rel="stylesheet">
    <link href="/static/layuiadmin/style/admin.css" media="all" rel="stylesheet">
</head>
<body>

<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-form layui-card-header layuiadmin-card-header-auto">
            <div class="layui-form-item">
                <form role="form">
                    <div class="layui-inline">
                        <label class="layui-form-label">菜单名</label>
                        <div class="layui-input-block">
                            <input autocomplete="off" class="layui-input" name="name" placeholder="请输入" type="text">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">菜单路径</label>
                        <div class="layui-input-block">
                            <input autocomplete="off" class="layui-input" name="path" placeholder="请输入" type="text">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <button class="layui-btn layuiadmin-btn-admin" lay-filter="LAY-user-back-search" lay-submit>
                            <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                        </button>
                        <button class="layui-btn layui-btn-primary" type="reset">重置</button>
                    </div>
                </form>
            </div>
        </div>

        <div class="layui-card-body">
            <table id="menu-list" lay-filter="menu-list"></table>
            <script id="toolbar" type="text/html">
                <div sec:authorize="hasRole('admin')" style="padding-bottom: 10px;">
                    <button class="layui-btn layui-btn-sm" lay-event="add">添加</button>
                    <button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="batchDel">删除</button>
                </div>
            </script>
            <script id="columnToolbar" sec:authorize="hasRole('menumanage')" type="text/html">
                <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
                <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
            </script>
        </div>
    </div>
</div>
<div id="addMenu" style="display: none">
    <div class="layui-form" id="add-menu-form" lay-filter="add-menu-form" style="padding-top: 20px">
        <div class="layui-form-item">
            <label class="layui-form-label" for="name">菜单名称<span style="color: red">*</span></label>
            <div class="layui-input-inline">
                <input autocomplete="off" class="layui-input" id="name" lay-verify="name" name="name"
                       placeholder="请输入菜单名称" type="text">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label" for="path">菜单路径<span style="color: red">*</span></label>
            <div class="layui-input-inline">
                <input autocomplete="off" class="layui-input" id="path" lay-verify="path" name="path"
                       placeholder="请输入菜单名称" type="text">
            </div>
        </div>
    </div>
</div>
<script src="/static/js/common/common.js" type="text/javascript"></script>
<script src="/static/layuiadmin/layui/layui.js" type="text/javascript"></script>
<script src="/static/js/menu/menu.js?532" type="text/javascript"></script>
</body>
</html>

